#include <SDL/SDL_UI.h>
#include <SDL/UI/View.h>

int main()
{

    SDL::Window window;
    window.init();
    SDL::Renderer renderer;
    renderer.init(window);
    renderer.setRenderDrawColor(255, 100, 10, 255);
    SDL_Event e;
    bool quit = false;
    SDL::View view(renderer);
    view.setSize(100, 100);
    view.setBorder(1);
    view.setPosition(200, 200);
    view.setBackgroudColor(100, 200, 10, 255);

    while (window.isOpen())
    {
        while (SDL_PollEvent(&e))
        {
            if (e.type == SDL_QUIT)
                window.close();
        }
        renderer.clear();
        view.onDraw();
        renderer.flip();
    }
    SDL_Quit();

    return 0;
}